package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.BusDeviceAreaMapper;
import com.ruoyi.business.domain.BusDeviceArea;
import com.ruoyi.business.service.IBusDeviceAreaService;

/**
 * 设施农业-园区概况Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-22
 */
@Service
public class BusDeviceAreaServiceImpl implements IBusDeviceAreaService 
{
    @Autowired
    private BusDeviceAreaMapper busDeviceAreaMapper;

    /**
     * 查询设施农业-园区概况
     * 
     * @param id 设施农业-园区概况主键
     * @return 设施农业-园区概况
     */
    @Override
    public BusDeviceArea selectBusDeviceAreaById(Long id)
    {
        return busDeviceAreaMapper.selectBusDeviceAreaById(id);
    }

    /**
     * 查询设施农业-园区概况列表
     * 
     * @param busDeviceArea 设施农业-园区概况
     * @return 设施农业-园区概况
     */
    @Override
    public List<BusDeviceArea> selectBusDeviceAreaList(BusDeviceArea busDeviceArea)
    {
        return busDeviceAreaMapper.selectBusDeviceAreaList(busDeviceArea);
    }

    /**
     * 新增设施农业-园区概况
     * 
     * @param busDeviceArea 设施农业-园区概况
     * @return 结果
     */
    @Override
    public int insertBusDeviceArea(BusDeviceArea busDeviceArea)
    {
        return busDeviceAreaMapper.insertBusDeviceArea(busDeviceArea);
    }

    /**
     * 修改设施农业-园区概况
     * 
     * @param busDeviceArea 设施农业-园区概况
     * @return 结果
     */
    @Override
    public int updateBusDeviceArea(BusDeviceArea busDeviceArea)
    {
        return busDeviceAreaMapper.updateBusDeviceArea(busDeviceArea);
    }

    /**
     * 批量删除设施农业-园区概况
     * 
     * @param ids 需要删除的设施农业-园区概况主键
     * @return 结果
     */
    @Override
    public int deleteBusDeviceAreaByIds(Long[] ids)
    {
        return busDeviceAreaMapper.deleteBusDeviceAreaByIds(ids);
    }

    /**
     * 删除设施农业-园区概况信息
     * 
     * @param id 设施农业-园区概况主键
     * @return 结果
     */
    @Override
    public int deleteBusDeviceAreaById(Long id)
    {
        return busDeviceAreaMapper.deleteBusDeviceAreaById(id);
    }
}
